SQUFOF

即 Shanks 的平方型分解算法。当要分解的数的两个素因数比较近时这个算法跑得很快。

It's Shanks' Square Form Factorization method. It's quite fast when the two prime factors of the number that needs to be factorized are quite near.

不知道如果两个素因子差为 m,那么时间复杂度是否为 O(m)。反正这个算法运算量有一个精确上界 32n(还要再乘以一个常数,视实现决定)。

It's unknown that if m is the subtraction result of the two prime factors, then the time complexity is O(m). But this algorithm has an precise computing upper bound of 32n (It should be multiplied with a constant which depends on the implementation).